package com.tofacebook.spring.jdbc.service.impl;

import com.tofacebook.spring.jdbc.service.BookService;
import com.tofacebook.spring.jdbc.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private BookService bookServide;

    @Override
    //@Transactional
    public void A(int[] bookIds,int userId) {
        for(int id :bookIds){
            bookServide.B(id,userId);
        }
    }
}
